<?php

class Products extends CI_Model {
	
	function getSpecification($sku){		 
	
		$query = $this->db->get_where('Maitai_Gadgets',array('sku' => $sku));
		if($query->num_rows == 0){
			return false; 
		}		 
		return $query->result_array();
			
	}
	
	public function get_gadgetid($gadgetid)
	{
		$this->db->cache_on();
		$query = $this->db->get_where('Maitai_Phones', array('gadgetSKU' => $gadgetid));
		$this->db->cache_off();
		return $query->result_array();
	}

}